From b4780f58b42406e3cbb88ad8be17199a8eb9d4b1 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Tue, 31 Mar 2026 11:30:08 +0800 Subject: [PATCH] ci: Extend cargo fmt check to cover all Rust crates The existing cargo fmt check only covered the ostree workspace package. Add fmt checks for the standalone test crates (tests/inst, tests/bootc-integration, tests/xtask) which are separate workspaces. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Xiaofeng Wang --- .github/workflows/rust.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0e62cd5b..1e768863 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,7 +24,11 @@ jobs: - name: Cache Dependencies uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 - name: cargo fmt (check) - run: cargo fmt -p ostree -- --check -l + run: | + cargo fmt -p ostree -- --check -l + for d in tests/inst tests/bootc-integration tests/xtask; do + cargo fmt --manifest-path $d/Cargo.toml -- --check -l + done - name: Build run: cargo build --verbose --features=${{ env['CARGO_PROJECT_FEATURES'] }} - name: Run tests -- 2.39.5